package your.pack.sten;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class STENActivity extends Activity implements OnClickListener {
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button bt_glossary = (Button)findViewById(R.id.bt_glossary);
        Button bt_teststory = (Button)findViewById(R.id.bt_teststory);
        Button bt_news = (Button)findViewById(R.id.bt_news);
       
        bt_glossary.setOnClickListener(this);   
        bt_teststory.setOnClickListener(this);
        bt_news.setOnClickListener(this);
        
    }
    /*
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event){
    	if((keyCode == KeyEvent.KEYCODE_BACK)&&wv.canGoBack()){
    		wv.goBack();
    		return true;
    	}
    	return super.onKeyDown(keyCode, event);
    }
    */
    
	@Override
	public void onClick(View v) {
		
		switch (v.getId()){
		case R.id.bt_glossary:
			Intent intent1 = new Intent(this, Glossary.class);
			startActivity(intent1);
			break;
		case R.id.bt_teststory:
			Intent intent2 = new Intent(this, TestStory.class);
			startActivity(intent2);
			break;
		case R.id.bt_news:
			Intent intent3 = new Intent(this, TestStory.class);
			startActivity(intent3);
			break;
		}
	}
}